﻿using Practice.PH4_2104A.Shopping.SevenLayerFramework.Domin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice.PH4_2104A.IRepository
{
    /// <summary>
    /// SKU图片
    /// </summary>
    public interface ISKUImageRepository
    {
        /// <summary>
        /// 添加一张图片
        /// </summary>
        /// <param name="model"></param>
        void Insert(SKUImageModel model);

        /// <summary>
        /// 批量添加图片
        /// </summary>
        /// <param name="models"></param>
        void Insert(List<SKUImageModel> models);

        /// <summary>
        /// 查询图片
        /// </summary>
        /// <returns></returns>
        IQueryable<SKUImageModel> GetAll();
    }
}
